package cn.littlehx.spring_boot_test2_2.core;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 实现序列化
 */
@Data
public class PageUtils implements Serializable {
    private static final long serialVersionUID = 1L;
    private int total;
    private List<?> rows;

    public PageUtils(List<?> rows,int total) {
        this.total = total;
        this.rows = rows;
    }
    public PageUtils( List<?> rows,Long total) {
        this.total = total.intValue();
        this.rows = rows;
    }
}
